package com.ruoyi.system.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分类管理对象 tb_type
 *
 * @author ruoyi
 * @date 2024-08-30
 */
public class Type extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 父级id
     */
//    @Excel(name = "父级id")
    private Long parentId;

    /**
     * 行业类目id
     */
//    @Excel(name = "行业类目id")
    private Long cateId;

    /**
     * 名称
     */
    @Excel(name = "名称", sort = 1)
    private String name;

    /**
     * 规格id
     */
//    @Excel(name = "规格id")
    private Long specId;

    /**
     * 单位id
     */
//    @Excel(name = "单位id")
    private Long brandId;

    /**
     * 包装
     */
    @Excel(name = "包装", sort = 4)
    private String packages;

    /**
     * 要求
     */
    @Excel(name = "要求", sort = 5)
    private String demand;

    /**
     * 其他
     */
    @Excel(name = "其他", sort = 6)
    private String other;

    /**
     * tag
     */
//    @Excel(name = "tag")
    private Long tag;

    /**
     * price
     */
//    @Excel(name = "price")
    private BigDecimal price;

    /**
     * 0正常 1删除
     */
//    @Excel(name = "0正常 1删除")
    private Integer deleted;

    private String parentName;
    @Excel(name = "行业类目", sort = 0)
    private String cateName;
    @Excel(name = "规格", sort = 2)
    private String specName;
    @Excel(name = "单位", sort = 3)
    private String brandName;

    public Type() {
    }

    public Type(Long cateId, String name, Long specId, Long brandId) {
        this.cateId = cateId;
        this.name = name;
        this.specId = specId;
        this.brandId = brandId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }

    public Long getCateId() {
        return cateId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSpecId(Long specId) {
        this.specId = specId;
    }

    public Long getSpecId() {
        return specId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }

    public String getPackages() {
        return packages;
    }

    public void setDemand(String demand) {
        this.demand = demand;
    }

    public String getDemand() {
        return demand;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getOther() {
        return other;
    }

    public void setTag(Long tag) {
        this.tag = tag;
    }

    public Long getTag() {
        return tag;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentId", getParentId())
                .append("cateId", getCateId())
                .append("name", getName())
                .append("specId", getSpecId())
                .append("brandId", getBrandId())
                .append("packages", getPackages())
                .append("demand", getDemand())
                .append("other", getOther())
                .append("tag", getTag())
                .append("price", getPrice())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .toString();
    }
}
